module.exports = {
  // 关闭 eslint
  lintOnSave: false,
  devServer: {
    open: true,
    port: 9000,
    proxy: {
      '^/api': {
        target: 'http://localhost:8080',
        ws: true,
        changeOrigin: true
      },
      '^/actuator/health': {
        target: 'http://localhost:8080'
      },
      '^/websocket': {
        target: 'ws://localhost:8080',//后端目标接口地址
        changeOrigin: true,//是否允许跨域
        /*pathRewrite: {
          '^/socket': '/',//重写没生效,
        },*/
        ws: true //开启ws, 如果是http代理此处可以不用设置
      }
    }
  }
}
